3 ...\PTVR_Researchers\Python_Scripts\Demos\Scenes\2.0_one_scene_w_NON_simplified_duration.py
5 Description : displays one scene whose duration is defined by explicitely creating an
6 interaction corresponding to this scene.
7 It requires therefore to define an event, a callback and their interaction.
12 Created on : Thu Jan 13 15:09:02 2022
31 my_scene_duration_in_ms = 10000
40 my_world = visual.The3DWorld (name_of_subject = username)
45 "and then the script will QUIT PTVR (ie the PTVR window will close itself)\n" +
46 "Or you can quit by closing yourself the PTVR window (mouse click in the top right corner)",
47 position_in_current_CS = np.array([0, 1, 1]), visual_angle_of_centered_x_height_deg = 1,
48 vertical_alignment=
"baseline")
49 my_scene.place(my_text,my_world)
51 my_event = event.Timer (delay_in_ms = my_scene_duration_in_ms)
52 my_callback = callback.EndCurrentScene()
54 my_scene.AddInteraction ( events = [my_event], callbacks = [my_callback] )
56 my_world.add_scene (my_scene)
60 if __name__ ==
"__main__":
def LaunchThe3DWorld(jsonFileCategory="Externals")